﻿JUI.JSONDataAdapter = function (params) {

    this.tagName = "JUI.JSONDataAdapter";
    this.inheritsFrom = JUI.DataAdapter;
}
JUI.JSONDataAdapter.prototype.length = function () {

    return this.dataSource.get().length;
}
JUI.JSONDataAdapter.prototype.getItemAt = function (idx) {

    return this.dataSource.get()[idx];
}
JUI.JSONDataAdapter.prototype.getDataValue = function (idx, dataField) {

    return this.dataSource.get()[idx][dataField];
}